<template>
	<div class="primg">
		<img :key="generateRandomString(20)" :style="style" :src="src" />
	</div>
</template>

<script setup>
	import { generateRandomString } from "@/utils";
	const props = defineProps({
		src: {
			type: String,
			default: "",
		},
		// 标题样式
		style: {
			type: Object,
			default: () => {
				return {};
			},
		},
	});
</script>

<style scoped lang="scss">
	.primg {
		width: 100%;
		height: 100%;
		display: flex;
		justify-content: center;
		align-items: center;
	}
</style>
